/**
 * MobX小程序适配器
 * 用于统一封装mobx-miniprogram和mobx-miniprogram-bindings库
 */

// 引入MobX核心库
const mobx = require('../../miniprogram_npm/mobx-miniprogram/index.js');

// 引入MobX绑定工具
const { createStoreBindings, storeBindingsBehavior } = require('../../miniprogram_npm/mobx-miniprogram-bindings/index.js');

// 导出核心API
module.exports = {
  // 核心observable API
  observable: mobx.observable,
  action: mobx.action,
  computed: mobx.computed,
  toJS: mobx.toJS,
  autorun: mobx.autorun,
  when: mobx.when,
  runInAction: mobx.runInAction,
  
  // 绑定工具
  createStoreBindings,
  storeBindingsBehavior,
  
  // 辅助方法
  isObservable: mobx.isObservable,
  isObservableArray: mobx.isObservableArray,
  isObservableObject: mobx.isObservableObject,
  
  // 调试工具
  spy: mobx.spy,
  configure: mobx.configure
}; 